fix: use JVM-based Kafka test image instead of kafka-native - #28
Merged
Conversation
The GraalVM native-image Kafka container (apache/kafka-native) crashes intermittently in CI with a SIGSEGV during class initialization (a race in getpwuid across the Substrate VM's startup threads), causing testcontainers to time out waiting for the broker to become ready. This blocked dependabot PRs #26 and #27 even though their actual dependency changes were unrelated to the failure. Switching to the standard JVM-based apache/kafka image avoids the native-image startup path entirely.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TopicCompareServiceTestusesapache/kafka-native:4.3.1(a GraalVM native-image build of Kafka) for its Testcontainers-managed brokersgetpwuidacross the Substrate VM's startup threads), causingContainerLaunchException: Timed out waiting for log output matching '.*Transitioning from RECOVERY to RUNNING.*'apache/kafka-native:latestapache/kafka:4.3.1image avoids the native-image startup path entirelyTest plan
./mvnw clean verifypasses locally — all 26 tests pass, no segfaultbuildjob passes on this PR@dependabot rebase) to pick up the fix and confirm they go green